﻿#region 命名空间

using System.Web.Mvc;

#endregion

namespace WinnerCMS.WebUI.Areas.Mobile
{
    public class MobileAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get { return "Mobile"; }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                "Mobile_default",
                "Mobile/",
                new {controller = "Mobile", action = "Index"}
                );
            context.MapRoute(
                "Mobile_CategoryPage",
                "Mobile/Category/{CategoryId}/{PageNo}",
                new
                {
                    controller = "Mobile",
                    action = "Category",
                    CategoryId = UrlParameter.Optional,
                    PageNo = UrlParameter.Optional
                }
                );
        }
    }
}